package top.ahzy.seobench.model.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "用户编辑对象", description = "")
public class UserEditReq {

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空字符串")
    private String username;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空字符串")
    private String password;

    @ApiModelProperty("盐")
    private String salt;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("邮箱")
    private String mailbox;

    @ApiModelProperty("头像")
    private String photo;

    @ApiModelProperty("状态 1:启用 0:禁用")
    private Integer status;

    @ApiModelProperty("描述")
    private String describes;
}
